#!/bin/sh

sysctl net.ipv4.ip_forward=1 # enable IP forwarding
iptables -P FORWARD ACCEPT   # initialize iptables chains
iptables -P OUTPUT ACCEPT
iptables -P INPUT ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o wlan0 -j MASQUERADE # setup NAT
